<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Title</title>
</head>
<body>
Hello,${name}
<hr />
<button onclick="send()">发送请求</button>
<script>
    function send(){
        fetch("mv4").then(function (response) {
            return response.json();
        }).then(function (data) {
            console.log(data);
        }).catch(function (e) {
            console.log(e);
        });
    }
</script>
</body>
</html>
